#define _CRT_SECURE_NO_WARNINGS 1
#include"QueueList.h"

void test1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);

	QDataType a=QueueFront(&q);
	printf("%d", a);
	QueuePop(&q);

	a = QueueFront(&q);
	printf("%d", a);
	QueuePop(&q);
	printf("size is :%d", q.size);

	a = QueueFront(&q);
	printf("%d", a);
	QueuePop(&q);

	a = QueueFront(&q);
	printf("%d", a);
	QueuePop(&q);

	a = QueueFront(&q);
	printf("%d", a);
	QueuePop(&q);

	QueueDestroy(&q);

}

void test2()
{
    
	MyStack* obj = myStackCreate();
	myStackPush(obj, 1);
	int a=myStackPop(obj);
	printf("%d", a);
	printf("%d", myStackEmpty(obj));


}

int main()
{
	//test1();
    //test2();
	return 0;
}